
import request from '@/utils/request';

export function listData() {
  return request({
    url: `/limit/login_region_blacklist_data`,
    method: 'post',
  });
}

export function saveData(form) {
  return request({
    url: '/limit/login_region_blacklist',
    method: 'post',
    data: form
  });
}

export function setSwitch(form) {
  return request({
    url: '/limit/set_login_switch',
    method: 'post',
    data: form
  });
}

export function saveRegion(form) {
  return request({
    url: '/limit/login_save_region',
    method: 'post',
    data: form
  });
}

export function switchStatus() {
  return request({
    url: '/limit/login_switch_status',
    method: 'post',
  });
}

export function updateData(form) {
  // return request({
  //   url: '/nobility/save',
  //   method: 'post',
  //   data: form
  // });
  return Promise.reject(new Error('接口暂时不可用! from : src/api/config/globalBlackList.js'))
}

export function deleteData(query) {
  // return request({
  //   url: '/nobility/del',
  //   method: 'post',
  //   data: query
  // });
  return Promise.reject(new Error('接口暂时不可用! from : src/api/config/globalBlackList.js'))
}


